package cn.tedu.submarine;
/** 炸弹 */
public class Bomb {
    int width;
    int height;
    int x;
    int y;
    int speed;
    /** 构造方法 */
    Bomb(int x,int y){ //炸弹的初始x/y坐标是由战舰的位置决定的，所以不能写死
        width = 9;
        height = 12;
        this.x = x;
        this.y = y;
        speed = 3;
    }

    void move(){
        System.out.println("炸弹的y向下移动");
    }
}




















